package com.spring.xml;

import java.util.HashMap;
import java.util.Map;

import com.spring.beans.BeanDefinition;

public abstract class AbstractBeanDefinitionReader implements BeanDefinitionReader {

	private Map<String, BeanDefinition> registry;
	private ResourceLoader resourceLoader;

	protected AbstractBeanDefinitionReader(ResourceLoader resourceLoader) {
		this.setRegistry(new HashMap<String, BeanDefinition>());
		this.setResourceLoader(resourceLoader);
	}

	public Map<String, BeanDefinition> getRegistry() {
		return registry;
	}

	public void setRegistry(Map<String, BeanDefinition> registry) {
		this.registry = registry;
	}

	public ResourceLoader getResourceLoader() {
		return resourceLoader;
	}

	public void setResourceLoader(ResourceLoader resourceLoader) {
		this.resourceLoader = resourceLoader;
	}
}
